package com.example.home;

public class Commands {
	public static String ENDPOINT =  "https://script.google.com/macros/s/AKfycbyzO6xVYQ1tvmkIBK8xc2GxNYw2rXz1GzKa8QjTYr5RWHr7bPTN/exec";
	public static String COMMAND = "?command=";
	public static String VALUE = "value=";
	public static String TYPE = "type=";
	public static String AND = "&";
	public static String COMMAND_BASE = ENDPOINT + COMMAND;
	
	//Commands without arguments
	public static String getCurrentMonthIncomes = COMMAND_BASE + "getCurrentMonthIncomes";
	public static String getAllIncomes = COMMAND_BASE + "getAllIncomes";
	public static String getCurrentYearIncomes = COMMAND_BASE + "getCurrentYearIncomes";
	public static String getCurrentMonthOutcomes = COMMAND_BASE + "getCurrentMonthOutcomes";
	public static String getAllOutcomes = COMMAND_BASE + "getAllOutcomes";
	public static String getCurrentYearOutcomes = COMMAND_BASE + "getCurrentYearOutcomes";
	public static String getAllSavings = COMMAND_BASE + "getAllSavings";
	public static String getCurrentMonthSavings = COMMAND_BASE + "getCurrentMonthSavings";
	public static String getCurrentYearSavings = COMMAND_BASE + "getCurrentYearSavings";
	public static String getCurrentMonthBalance = COMMAND_BASE + "getCurrentMonthBalance";
	public static String getTotalBalance = COMMAND_BASE + "getTotalBalance";
	public static String getDailyBudget = COMMAND_BASE + "getDailyBudget";
	
	//Commands with arguments
	public static String setCurrentMonthOutcome(String value, String type)
	{
		return COMMAND_BASE + "setCurrentMonthOutcome" + AND +  VALUE + value + AND + TYPE + type;
	}
	
	public static String setCurrentMonthIncome(String value, String type)
	{
		return COMMAND_BASE + "setCurrentMonthIncome" + AND +  VALUE + value + AND + TYPE + type;
	}
	
}
